package com.ruoyi.base.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.base.mapper.BaseEmerTeTempMapper;
import com.ruoyi.base.domain.BaseEmerTeTemp;
import com.ruoyi.base.service.IBaseEmerTeTempService;

/**
 * 应急TE单模板Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-23
 */
@Service
public class BaseEmerTeTempServiceImpl implements IBaseEmerTeTempService 
{
    @Autowired
    private BaseEmerTeTempMapper baseEmerTeTempMapper;

    /**
     * 查询应急TE单模板
     * 
     * @param ID 应急TE单模板主键
     * @return 应急TE单模板
     */
    @Override
    public BaseEmerTeTemp selectBaseEmerTeTempByID(String ID)
    {
        return baseEmerTeTempMapper.selectBaseEmerTeTempByID(ID);
    }

    /**
     * 查询应急TE单模板列表
     * 
     * @param baseEmerTeTemp 应急TE单模板
     * @return 应急TE单模板
     */
    @Override
    public List<BaseEmerTeTemp> selectBaseEmerTeTempList(BaseEmerTeTemp baseEmerTeTemp)
    {
        return baseEmerTeTempMapper.selectBaseEmerTeTempList(baseEmerTeTemp);
    }

    /**
     * 新增应急TE单模板
     * 
     * @param baseEmerTeTemp 应急TE单模板
     * @return 结果
     */
    @Override
    public int insertBaseEmerTeTemp(BaseEmerTeTemp baseEmerTeTemp)
    {
        return baseEmerTeTempMapper.insertBaseEmerTeTemp(baseEmerTeTemp);
    }

    /**
     * 修改应急TE单模板
     * 
     * @param baseEmerTeTemp 应急TE单模板
     * @return 结果
     */
    @Override
    public int updateBaseEmerTeTemp(BaseEmerTeTemp baseEmerTeTemp)
    {
        return baseEmerTeTempMapper.updateBaseEmerTeTemp(baseEmerTeTemp);
    }

    /**
     * 批量删除应急TE单模板
     * 
     * @param IDs 需要删除的应急TE单模板主键
     * @return 结果
     */
    @Override
    public int deleteBaseEmerTeTempByIDs(String[] IDs)
    {
        return baseEmerTeTempMapper.deleteBaseEmerTeTempByIDs(IDs);
    }

    /**
     * 删除应急TE单模板信息
     * 
     * @param ID 应急TE单模板主键
     * @return 结果
     */
    @Override
    public int deleteBaseEmerTeTempByID(String ID)
    {
        return baseEmerTeTempMapper.deleteBaseEmerTeTempByID(ID);
    }
}
